package chixing.day05;

/**
 * 1.new:开辟一块堆内存
 * 2.shop（）：初始化对象属性，执行无参构造函数方法体
 *3.将对象名指向堆内存
 */
public class ShopTest {
    public static void main(String[] args) {
        Shop shop1=new Shop();
        shop1.setShopId(101);
        shop1.setShopName("海底捞");
        shop1.setBranchName("苏州中心店");
        shop1.setShopScore(4.5f);

        Shop shop2 = new Shop(202,"汉堡");
        Shop shop3 = new Shop(303,"麦当劳","翰林院店",4.8f);


        System.out.println(shop1);
        System.out.println(shop2);
        System.out.println(shop3);

    }
}
